<?php
include("check.php");
/*include("check2.php");*/
include_once("../function.php");
include_once("../class/email_class.php");
include_once("../class/member_class.php");
include_once("../class/bonus_class.php");
include_once("../class/ulevel_class.php");
header("Content-Type: text/html;charset=utf-8");
?>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>淘车邦汽车有奖快销平台</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/style1.css" rel="stylesheet" type="text/css" />

    <link rel="stylesheet" type="text/css" href="./awesome/css/font-awesome.min.css"/>
    <script src="../unslider/jquery-1.11.1.min.js"></script>

    <script src="../unslider/unslider.min.js"></script>
    <script src="./js/style.js" type="text/javascript" charset="utf-8"></script>
    <link href="../layui-master/dist/css/layui.css" rel="stylesheet" type="text/css">
<!--    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">-->
    <script src="../layui-master/dist/layui.js"></script>

    <!--标准mui.css-->
    <link rel="stylesheet" href="css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="css/app.css"/>
<!--    <link rel="stylesheet" type="text/css" href="css/icons-extra.css">-->
    <!--自定义iconfont-->
    <!--<link rel="stylesheet" type="text/css" href="css/iconfont.css">-->
    <script>

        $(document).ready(function(e) {

            $('#b02').unslider();

        });

    </script>
    <style>

        html, body { font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;}

        ul, ol { padding: 0;}



        .banner { position: relative; overflow: auto; text-align: center;height: 10rem;}

        .banner li { list-style: none; }

        .banner ul li { float: left; }
        .banner img {width: 100%;height: 100%}

    </style>
</head>
<body>

<div class="nav-bottom">
    <!--图片轮播-->
 <!--   <div id="slider" class="mui-slider" >
        <div class="mui-slider-group mui-slider-loop">
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="images/banner1.jpg"></a></div>
            <div class="mui-slider-item"><a href="#"><img src="images/banner1.jpg"></a></div>
            <div class="mui-slider-item"><a href="#"><img src="images/banner2.jpg"></a></div>
            <div class="mui-slider-item"><a href="#"><img src="images/banner1.jpg"></a></div>
            <div class="mui-slider-item"><a href="#"><img src="images/banner2.jpg"></a></div>
            <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="images/banner1.jpg"></a></div>
        </div>
        <div class="mui-slider-indicator">
            <div class="mui-indicator mui-active"></div>
            <div class="mui-indicator"></div>
            <div class="mui-indicator"></div>
            <div class="mui-indicator"></div>
        </div>
    </div>-->
    <div class="mui-slider-item">


        <div class="banner" id="b02">
            <ul>
                <?php
                    $sql="select * from news where lx=1";
                    $query=mysql_query($sql);
                    while ($row=mysql_fetch_assoc($query)){
                    ?>
                <li style="height: 100%;width: 100%"><?=$row['newscontent']?></li>
                <?php }?>
            </ul>
        </div></div>
    <!--新款发售-->
        <ul class="pattern-list" style="margin-top: 1rem;">
            <?php
            $sqln="select * from goodstype where typename like '%汽车%'";
            $goodstype=getOne($sqln);


            $sql = "SELECT * FROM `goods` where lx=".$goodstype['id'];

            if($query = mysql_query($sql)){
                while ($row=mysql_fetch_array($query)){
                    ?>
                    <li class="mui-card-footer" style="float: left;width: 46%;margin-left: 3%;">
                        <a href='goodscontent3.php?id=<?=$row['id']?>' style='text-decoration:none;width: 100%' >
                        <div class="mui-card" style="height: 11rem;width: 100%">
                                <div class="mui-card-header mui-card-media" style="height:40vw;width: 100%"><img class="w100" src="../upload/<?=$row['goodsimg']?>" style="height:100%;"/></div>
                                <div class="mui-card-content" style="height: 1rem;line-height: 1rem;">
                                    <div class="mui-card-content-inner">
                                        <p style="color: #333;font-size: 40px;"><?=$row['goodsname']?></p>
                                    </div>
                                </div>
                                <div class="pattern-list__p" style="height: 1rem;margin-top: 0.2rem;line-height: 1rem;">
                                    <p class="font-color-pink" style="font-size: 40px;">￥<label><?=$row['price']?></label></p>
                                </div>
                        </div>
                        </a>
                    </li>
                    <?php
                }
            }
            ?>
        </ul>
    <div class="" style="height: 100px;clear:both;width: 100%;"></div>
</div>
<?php include_once ("public/footer_nav.html")?>
</body>
</html>